﻿using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Test.GolSig.Library.CellInfoSpecs
{
    
    
    
    [TestClass()]
    public class WhenCreatingCellInfo
    {


      
        [TestMethod()]
        public void GivenValidPosition_ThenCellInfoShouldBeCreated()
        {
            Position position = new Position(0,0);
            bool alive = false;
            CellInfo target = new CellInfo(position, alive);
            Assert.IsNotNull(target);
        }



       
        [TestMethod() , ExpectedException(typeof(System.ArgumentNullException))]
        public void GivenNullPosition_ThenNullArgumentExceptionShouldBeThrown()
        {
            Position position = null; 
            bool alive = false; 
            CellInfo target = new CellInfo(position, alive);
            Assert.Fail("expected argument null exception");
        }

     

      
    }
}